console.log "main","app initializing ..."

# 下载项目配制文件
http().download
	url:"http:192.168.43.217:3000/download"
	project:app_info.CFBundleName
.then (res)->
	console.log "download app_info faild" if !res.success
	zip().unCompress 
		file:res.data
		to:"/lib"
	.then (unCompress)->
		$S().loadFile unCompress.path+"/"+app_info.CFBundleName+"/"+app_info.CFBundleName+".js"
		.then (content)->
			eval content
